package com.martini.satoken01.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author martini at 2021/12/18 22:40
 */
@Data
@Accessors(chain = true)
public class SysUser implements Serializable {

    private static final long serialVersionUID = -4698653488105038774L;

    @Id
    private Long id;

    private String username;

    private String password;

    private String nickname;

    private String email;

    private String avatar;

    private LocalDate birthday;

    private Integer status;

    private String salt;

    private LocalDateTime registerTime;

    private LocalDateTime lastLoginTime;

}
